export class CUser<Type> {
	readonly id : Type;//只读属性 只能在构造函数中赋值
	name : Type;

	constructor(id : Type, name : Type) {
		this.id = id;
		this.name = name;
	}

	getName() : Type {
		return this.name;
	}

	getId() : Type {
		return this.id;
	}

	setName(name : Type) {
		this.name = name;
	}

	toString() : string {
		return "id: " + this.id + ", name: " + this.name;
	}
}